package com.yunshipei.model;

/**
 * Created by cike on 16/6/30.
 */
public class ClearDeviceEventBuilder {
    private String messageName;
    private String messageData;
    private String GUID;
    private String deviceId;

    public YspEvent.ClearDevicesEvent build() {
        YspEvent.ClearDevicesEvent clearDevicesEvent = new YspEvent.ClearDevicesEvent();
        clearDevicesEvent.setDeviceId(deviceId);
        clearDevicesEvent.setGUID(GUID);
        clearDevicesEvent.setMessageData(messageData);
        clearDevicesEvent.setMessageName(messageName);
        return clearDevicesEvent;
    }

    public ClearDeviceEventBuilder setMessageName(String messageName) {
        this.messageName = messageName;
        return this;
    }

    public ClearDeviceEventBuilder setMessageData(String messageData) {
        this.messageData = messageData;
        return this;
    }

    public ClearDeviceEventBuilder setGUID(String GUID) {
        this.GUID = GUID;
        return this;
    }

    public ClearDeviceEventBuilder setDeviceId(String deviceId) {
        this.deviceId = deviceId;
        return this;
    }
}
